/**
 * The Single class models a hand of single
 * @author Xu Chen
 */
public class Single extends Hand{
	/**
	 * a constructor for building a hand with the specified player and list of cards.
	 * @param player is the player playing this hand
	 * @param cards is the cards in this hand
	*/
	public Single(CardGamePlayer player, CardList cards) {
		super(player, cards);
	}
	/**
	*
	*a method for retrieving the top card of this hand.
	*@return the top card of this hand
	*/
	public Card getTopCard() {
		return this.getCard(0);
	}
	/**
	*
	*a method for checking if this is a valid hand.
	*@return true if this hand is valid
	*/
	public boolean isValid() {
		if(this.size()==1) {
			return true;
		}
		return false;
	};
	/**
	*
	* a method for returning a string specifying the type of this hand
	*@return "Single"
	*/
	public String getType() {
		return "Single";
	};
}